import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { Button } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import 'vant/lib/button/style'
import axios from 'axios'
import moment from 'moment'
import Vant from 'vant'
import { Tabbar,TabbarItem,Search, Swipe, SwipeItem,Lazyload,Divider,Grid, GridItem } from 'vant'
import 'vant/lib/index.css'
import { GoodsAction, GoodsActionIcon, GoodsActionButton,NavBar,Tab, Tabs,Card,SubmitBar } from 'vant'
import { AddressList } from 'vant'
import { Icon } from 'vant'

Vue.use(Icon)
Vue.use(AddressList)
Vue.use(SubmitBar)
Vue.use(Card)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(GoodsAction)
Vue.use(NavBar)
Vue.use(GoodsActionButton)
Vue.use(GoodsActionIcon)
Vue.use(Grid)
Vue.use(GridItem)	
Vue.use(Divider)
Vue.use(Lazyload)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Search)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.component(Button.name,Button)
Vue.component(GoodsAction.name,GoodsAction)
Vue.component(GoodsActionIcon.name,GoodsActionIcon)
Vue.component(GoodsActionButton.name,GoodsActionButton)
Vue.config.productionTip = false
Vue.prototype.$axios = axios



Vue.filter('formatDate',(date,formatStr)=>{
	moment.locale('zh-cn')  //全局设置为中文
	return moment(date),format(formatStr)
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
